001
002 package net.dpml.station;
003
004 import java.rmi.Remote;
005 import java.rmi.RemoteException;
006
007 import net.dpml.lang.UnknownKeyException;
008
009 /**
010 * Application management center.
011 */
012 public interface Station extends Remote
013 {
014 /**
015 * The name under which the station will be published in
016 * an RMI registry.
017 */
018 static final String STATION_KEY = "dpml/station";
019
020 /**
021 * Return an application reference for the supplied callback id.
022 * @param id the callback id
023 * @return the application
024 * @exception UnknownKeyException if the id is unknown
025 * @exception RemoteException if a remote error occurs
026 */
027 Callback getCallback( String id ) throws UnknownKeyException, RemoteException;
028
029 }
030